//
//  CoreDataManager.h
//  UI_CoreData
//
//  Created by 郑楠 on 15/5/12.
//  Copyright (c) 2015年 ___SelfLearn___. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@interface CoreDataManager : NSObject

+ (instancetype)defaultCoreDataManager;

// 数据管理器类
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
// 数据模型类
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
// 数据连接器类
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

@end
